﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ITOMMS.Entity;

namespace ITOMMS.Web.Notice
{
    public partial class NoticeView : BasePage
    {
        public string sContent = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    tbNoticeEntity article = new Entity.tbNoticeEntity();
                    article = article.GetById(int.Parse(Request.QueryString["id"]));
                    lblTitle.Text = article.Title;
                    this.lblPublishDate.Text = article.CreateDate.ToString();
                    sContent = article.Content;
                }
            }
        }

        protected void btnBack_Click(object sender, EventArgs e)
        {
            Response.Redirect("NoticeList.aspx", true);
        }
    }
}
